#include "stm32f10x.h"
#include "fire.h"

extern const u16 outline[FIRE_LAYOUT_LEN][16] = {
    {119, 5},
    {119, 7},
    {119, 8},
    {120, 3, 124, 5},
    {121, 3, 125, 6},
    {121, 4, 127, 5},
    {122, 3, 129, 5},
    {123, 3, 130, 5},
    {123, 3, 132, 5},
    {124, 3, 133, 5},
    {124, 3, 134, 5},
    {125, 3, 136, 5},
    {125, 3, 137, 5},
    {126, 3, 138, 5},
    {126, 4, 140, 4},
    {127, 3, 141, 5},
    {128, 3, 142, 5},
    {128, 3, 143, 5},
    {129, 3, 145, 4},
    {129, 3, 146, 4},
    {130, 3, 147, 4},
    {130, 3, 148, 4},
    {130, 4, 149, 4},
    {131, 3, 150, 4},
    {131, 3, 151, 4},
    {132, 3, 152, 4},
    {132, 3, 153, 4},
    {133, 3, 154, 4},
    {133, 3, 155, 4},
    {133, 4, 156, 4},
    {134, 3, 157, 4},
    {134, 3, 158, 4},
    {134, 4, 159, 4},
    {135, 3, 160, 4},
    {135, 3, 161, 4},
    {136, 3, 162, 3},
    {136, 3, 162, 4},
    {136, 3, 163, 4},
    {137, 3, 164, 4},
    {137, 3, 165, 4},
    {137, 3, 166, 3},
    {138, 3, 167, 3},
    {138, 3, 168, 3},
    {138, 3, 168, 4},
    {138, 4, 169, 4},
    {139, 3, 170, 3},
    {139, 3, 171, 3},
    {139, 3, 172, 3},
    {140, 3, 172, 4},
    {140, 3, 173, 4},
    {140, 3, 174, 4},
    {140, 3, 175, 3},
    {141, 3, 175, 4},
    {141, 3, 176, 4},
    {141, 3, 177, 4},
    {141, 3, 177, 4},
    {141, 3, 178, 4},
    {142, 3, 179, 4},
    {142, 3, 180, 3},
    {142, 3, 180, 4},
    {142, 3, 181, 4},
    {142, 3, 182, 3},
    {142, 3, 182, 4},
    {143, 2, 183, 4},
    {143, 3, 184, 3},
    {143, 3, 184, 4},
    {143, 3, 185, 4},
    {143, 3, 186, 3},
    {143, 3, 186, 4},
    {143, 3, 187, 3},
    {143, 3, 188, 3},
    {143, 3, 188, 4},
    {143, 3, 189, 3},
    {143, 3, 189, 4},
    {144, 2, 190, 3},
    {144, 2, 191, 3},
    {144, 2, 191, 4},
    {144, 2, 192, 3},
    {144, 3, 192, 4},
    {144, 3, 193, 3},
    {144, 3, 193, 4},
    {144, 3, 194, 4},
    {144, 3, 195, 3},
    {144, 3, 195, 4},
    {144, 3, 196, 3},
    {144, 3, 196, 4},
    {144, 2, 197, 3},
    {144, 2, 197, 4},
    {143, 3, 198, 3},
    {143, 3, 199, 3},
    {143, 3, 199, 3},
    {143, 3, 200, 3, 211, 3},
    {143, 3, 200, 3, 211, 3},
    {143, 3, 200, 4, 211, 4},
    {143, 3, 201, 3, 211, 5},
    {143, 3, 201, 4, 211, 6},
    {143, 3, 202, 3, 212, 6},
    {142, 3, 202, 4, 212, 6},
    {142, 3, 203, 3, 212, 7},
    {142, 3, 203, 4, 213, 7},
    {142, 3, 204, 3, 213, 3, 217, 3},
    {142, 3, 204, 4, 213, 3, 217, 4},
    {142, 3, 205, 3, 214, 2, 218, 4},
    {142, 3, 205, 4, 214, 3, 219, 4},
    {141, 3, 206, 3, 214, 3, 219, 4},
    {141, 3, 206, 4, 214, 3, 220, 4},
    {141, 3, 206, 4, 214, 3, 221, 4},
    {141, 3, 207, 3, 215, 2, 221, 4},
    {140, 4, 207, 4, 215, 3, 222, 4},
    {140, 3, 208, 3, 215, 3, 223, 3},
    {140, 3, 208, 3, 215, 3, 223, 4},
    {140, 3, 209, 3, 215, 3, 224, 4},
    {139, 4, 209, 3, 215, 3, 224, 4},
    {139, 4, 209, 4, 215, 3, 225, 4},
    {139, 3, 210, 3, 215, 3, 226, 3},
    {139, 3, 210, 3, 216, 2, 226, 4},
    {138, 4, 211, 3, 216, 2, 227, 4},
    {138, 3, 211, 3, 216, 2, 227, 4},
    {138, 3, 211, 3, 216, 2, 228, 3},
    {137, 4, 212, 3, 216, 3, 229, 3},
    {137, 4, 212, 3, 216, 3, 229, 4},
    {137, 3, 212, 3, 216, 2, 230, 3},
    {137, 3, 213, 2, 216, 2, 230, 4},
    {136, 4, 213, 5, 231, 3},
    {136, 3, 213, 5, 231, 3},
    {136, 3, 213, 5, 232, 3},
    {135, 4, 214, 4, 232, 3},
    {135, 3, 214, 4, 233, 3},
    {134, 4, 214, 4, 233, 3},
    {134, 3, 214, 4, 234, 3},
    {134, 3, 214, 4, 234, 3},
    {133, 4, 215, 3, 235, 3},
    {133, 3, 215, 3, 235, 3},
    {133, 3, 236, 3},
    {132, 3, 236, 3},
    {132, 3, 236, 4},
    {131, 4, 237, 3},
    {131, 3, 237, 3},
    {130, 4, 238, 3},
    {130, 3, 238, 3},
    {130, 3, 238, 4},
    {129, 3, 239, 3},
    {129, 3, 239, 3},
    {128, 3, 240, 3},
    {128, 3, 240, 3},
    {127, 3, 240, 4},
    {127, 3, 241, 3},
    {126, 3, 241, 3},
    {126, 3, 241, 4},
    {125, 4, 242, 3},
    {125, 3, 242, 3},
    {124, 4, 242, 4},
    {124, 3, 243, 3},
    {123, 4, 243, 3},
    {123, 3, 243, 4},
    {122, 3, 244, 3},
    {122, 3, 244, 3},
    {121, 3, 244, 4},
    {120, 4, 161, 2, 245, 3},
    {120, 3, 159, 5, 245, 3},
    {119, 4, 160, 4, 245, 3},
    {119, 3, 160, 5, 246, 3},
    {118, 4, 161, 5, 246, 3},
    {118, 3, 161, 6, 246, 3},
    {117, 4, 162, 2, 165, 3, 246, 4},
    {117, 3, 162, 6, 247, 3},
    {116, 4, 163, 2, 166, 3, 247, 3},
    {116, 3, 163, 3, 167, 3, 247, 3},
    {115, 4, 163, 3, 167, 3, 247, 4},
    {77, 3, 115, 4, 164, 3, 168, 3, 248, 3},
    {76, 6, 115, 3, 164, 3, 169, 3, 248, 3},
    {77, 8, 114, 4, 164, 3, 170, 3, 248, 3},
    {77, 10, 114, 3, 164, 3, 170, 3, 248, 4},
    {78, 11, 114, 3, 165, 2, 171, 3, 249, 3},
    {79, 4, 84, 6, 113, 4, 165, 3, 172, 3, 249, 3},
    {80, 4, 86, 6, 113, 4, 165, 3, 172, 3, 249, 3},
    {81, 4, 88, 5, 113, 3, 165, 3, 173, 3, 249, 3},
    {82, 4, 89, 6, 113, 3, 166, 2, 173, 3, 249, 4},
    {83, 3, 91, 5, 113, 3, 166, 2, 174, 3, 250, 3},
    {83, 4, 92, 5, 112, 3, 166, 2, 174, 3, 250, 3},
    {84, 3, 93, 5, 112, 3, 166, 3, 175, 3, 250, 3},
    {85, 3, 94, 5, 112, 3, 166, 3, 175, 3, 250, 3},
    {85, 3, 95, 5, 112, 3, 166, 3, 176, 3, 250, 3},
    {86, 3, 96, 5, 111, 4, 166, 3, 176, 3, 251, 3},
    {86, 3, 97, 4, 111, 4, 166, 3, 177, 3, 251, 3},
    {87, 3, 98, 4, 111, 3, 166, 3, 177, 3, 251, 3},
    {87, 3, 99, 4, 111, 3, 166, 3, 177, 3, 251, 3},
    {87, 4, 99, 4, 111, 3, 166, 3, 178, 3, 251, 3},
    {88, 3, 100, 4, 111, 3, 166, 3, 178, 3, 252, 3},
    {88, 3, 101, 3, 111, 3, 166, 3, 178, 3, 252, 3},
    {88, 4, 101, 4, 111, 3, 166, 3, 179, 3, 252, 3},
    {89, 3, 102, 3, 111, 3, 166, 3, 179, 3, 252, 3},
    {89, 3, 103, 3, 111, 3, 166, 3, 179, 3, 252, 3},
    {89, 4, 103, 3, 111, 3, 166, 3, 180, 3, 252, 3},
    {90, 3, 104, 3, 110, 4, 166, 3, 180, 3, 252, 3},
    {90, 3, 104, 3, 110, 4, 166, 3, 180, 3, 253, 2},
    {90, 3, 105, 3, 110, 3, 166, 3, 181, 3, 253, 3},
    {90, 3, 105, 3, 110, 3, 166, 3, 181, 3, 253, 3},
    {90, 4, 106, 3, 110, 3, 166, 3, 181, 3, 253, 3},
    {90, 4, 106, 3, 110, 3, 166, 3, 181, 3, 253, 3},
    {91, 3, 106, 7, 166, 2, 182, 3, 253, 3},
    {91, 3, 107, 7, 166, 2, 182, 3, 253, 3},
    {91, 3, 107, 7, 166, 2, 182, 3, 253, 3},
    {91, 3, 108, 2, 111, 3, 165, 3, 182, 3, 253, 3},
    {91, 3, 108, 6, 165, 3, 182, 3, 253, 3},
    {91, 4, 108, 6, 165, 3, 182, 3, 254, 2},
    {91, 4, 109, 5, 165, 3, 183, 3, 254, 3},
    {92, 3, 109, 5, 165, 3, 183, 3, 254, 3},
    {92, 3, 109, 5, 165, 2, 183, 3, 254, 3},
    {92, 3, 110, 4, 164, 3, 183, 3, 254, 3},
    {92, 3, 110, 4, 164, 3, 183, 3, 254, 3},
    {92, 3, 110, 4, 164, 3, 183, 3, 254, 3, 268, 2},
    {92, 3, 110, 2, 113, 2, 164, 3, 183, 3, 254, 3, 267, 4},
    {92, 3, 111, 4, 164, 2, 184, 2, 254, 3, 267, 5},
    {92, 3, 111, 4, 163, 3, 184, 3, 254, 3, 267, 5},
    {91, 4, 111, 4, 163, 3, 184, 3, 254, 3, 267, 6},
    {91, 4, 112, 1, 114, 1, 163, 3, 184, 3, 254, 3, 267, 6},
    {91, 3, 112, 1, 163, 2, 184, 3, 254, 3, 267, 7},
    {91, 3, 162, 3, 184, 3, 254, 3, 267, 3, 271, 3},
    {91, 3, 162, 3, 184, 3, 254, 3, 267, 3, 271, 4},
    {91, 3, 162, 3, 184, 3, 254, 3, 267, 3, 272, 3},
    {90, 4, 161, 3, 184, 3, 254, 3, 267, 3, 272, 4},
    {90, 4, 161, 3, 184, 3, 254, 3, 267, 3, 273, 3},
    {90, 3, 161, 3, 184, 3, 254, 3, 267, 3, 273, 4},
    {90, 3, 160, 3, 184, 3, 254, 3, 266, 4, 274, 3},
    {89, 4, 160, 3, 184, 3, 254, 3, 266, 4, 274, 4},
    {89, 3, 160, 3, 184, 3, 254, 3, 266, 3, 275, 3},
    {89, 3, 159, 3, 184, 3, 254, 3, 266, 3, 275, 4},
    {88, 4, 159, 3, 184, 3, 254, 3, 266, 3, 276, 3},
    {88, 3, 159, 3, 184, 3, 254, 3, 266, 3, 276, 4},
    {88, 3, 158, 3, 184, 3, 254, 3, 266, 3, 277, 3},
    {87, 4, 158, 3, 184, 3, 254, 3, 265, 4, 278, 3},
    {87, 3, 157, 3, 184, 3, 254, 3, 265, 4, 278, 3},
    {86, 4, 157, 3, 184, 3, 254, 3, 265, 3, 279, 3},
    {86, 3, 156, 4, 184, 3, 254, 3, 265, 3, 279, 3},
    {85, 3, 156, 3, 184, 2, 254, 3, 265, 3, 279, 4},
    {85, 3, 155, 4, 184, 2, 254, 3, 265, 3, 280, 3},
    {84, 4, 155, 3, 184, 2, 254, 2, 264, 4, 280, 4},
    {83, 4, 154, 4, 183, 3, 253, 3, 264, 3, 281, 3},
    {83, 3, 154, 3, 183, 3, 253, 3, 264, 3, 281, 4},
    {82, 4, 153, 4, 183, 3, 253, 3, 264, 3, 282, 3},
    {81, 4, 153, 3, 183, 3, 253, 3, 263, 4, 282, 3},
    {81, 4, 152, 3, 183, 3, 253, 3, 263, 4, 283, 3},
    {80, 4, 152, 3, 183, 3, 253, 3, 263, 3, 283, 3},
    {79, 4, 151, 3, 183, 3, 253, 3, 262, 4, 283, 4},
    {79, 3, 151, 3, 183, 3, 252, 3, 262, 4, 284, 3},
    {78, 4, 150, 3, 183, 3, 252, 3, 262, 3, 284, 4},
    {77, 4, 150, 3, 182, 3, 252, 3, 262, 3, 285, 3},
    {76, 4, 149, 3, 182, 3, 252, 3, 262, 3, 285, 3},
    {75, 4, 148, 3, 182, 3, 252, 3, 261, 3, 285, 4},
    {74, 5, 148, 3, 182, 3, 252, 3, 261, 3, 286, 3},
    {74, 4, 147, 3, 182, 3, 251, 3, 260, 4, 286, 4},
    {73, 4, 147, 3, 182, 3, 251, 3, 260, 3, 286, 4},
    {71, 5, 146, 3, 182, 3, 251, 3, 260, 3, 287, 3},
    {71, 4, 145, 3, 182, 3, 251, 3, 259, 4, 287, 4},
    {70, 4, 145, 3, 181, 3, 250, 4, 259, 3, 288, 3},
    {69, 4, 144, 3, 181, 3, 250, 3, 259, 3, 288, 4},
    {68, 4, 144, 3, 181, 3, 250, 3, 258, 4, 288, 4},
    {67, 4, 143, 3, 181, 3, 250, 3, 258, 3, 289, 3},
    {65, 5, 142, 4, 181, 3, 249, 4, 258, 3, 289, 4},
    {64, 5, 142, 3, 181, 3, 249, 3, 257, 3, 289, 4},
    {63, 5, 141, 3, 181, 3, 249, 3, 257, 3, 290, 3},
    {62, 5, 140, 4, 180, 3, 249, 3, 256, 4, 290, 4},
    {61, 5, 140, 3, 180, 3, 248, 4, 256, 3, 290, 4},
    {60, 5, 139, 3, 180, 3, 248, 3, 256, 3, 291, 3},
    {59, 5, 138, 4, 180, 3, 248, 3, 255, 3, 291, 3},
    {24, 4, 58, 5, 138, 3, 180, 3, 248, 3, 255, 3, 291, 4},
    {24, 4, 57, 5, 137, 3, 180, 2, 247, 4, 254, 3, 292, 3},
    {23, 4, 56, 5, 137, 3, 179, 3, 247, 3, 254, 3, 292, 3},
    {22, 5, 55, 5, 136, 3, 179, 3, 247, 3, 253, 4, 292, 3},
    {22, 5, 54, 5, 135, 4, 179, 3, 246, 4, 253, 3, 292, 4},
    {21, 6, 53, 5, 135, 3, 179, 3, 246, 3, 252, 4, 293, 3},
    {21, 5, 52, 5, 134, 4, 179, 3, 246, 3, 252, 3, 293, 3},
    {20, 6, 52, 4, 134, 3, 178, 4, 245, 4, 251, 4, 293, 4},
    {20, 6, 51, 4, 133, 3, 178, 3, 245, 3, 251, 3, 294, 3},
    {19, 7, 50, 4, 132, 4, 178, 3, 245, 3, 250, 4, 294, 3},
    {19, 3, 23, 2, 49, 4, 132, 3, 178, 3, 244, 4, 250, 3, 294, 3},
    {18, 7, 48, 5, 131, 3, 178, 3, 244, 3, 249, 4, 294, 3},
    {18, 3, 22, 3, 48, 4, 131, 3, 178, 2, 243, 4, 248, 4, 295, 3},
    {18, 3, 22, 3, 47, 4, 130, 3, 177, 3, 243, 4, 248, 4, 295, 3},
    {17, 3, 22, 3, 46, 4, 129, 4, 177, 3, 243, 3, 247, 4, 295, 3},
    {17, 3, 22, 3, 46, 3, 129, 3, 177, 3, 243, 3, 247, 3, 295, 3},
    {16, 4, 22, 3, 45, 4, 128, 3, 177, 3, 242, 8, 295, 3},
    {16, 3, 22, 3, 44, 4, 127, 4, 177, 3, 242, 3, 246, 3, 296, 3},
    {16, 3, 22, 2, 44, 3, 127, 3, 177, 2, 241, 8, 296, 3},
    {15, 4, 22, 2, 43, 4, 126, 3, 176, 3, 241, 3, 245, 3, 296, 3},
    {15, 3, 22, 2, 43, 3, 126, 3, 176, 3, 241, 7, 296, 3},
    {15, 3, 22, 2, 42, 3, 125, 3, 176, 3, 240, 3, 244, 3, 296, 3},
    {14, 3, 22, 2, 41, 4, 124, 4, 176, 3, 240, 6, 297, 2},
    {14, 3, 22, 2, 41, 3, 124, 3, 176, 2, 240, 2, 243, 3, 297, 3},
    {14, 3, 22, 2, 40, 4, 123, 3, 175, 3, 239, 6, 297, 3},
    {13, 3, 22, 2, 40, 3, 122, 4, 175, 3, 239, 2, 242, 3, 297, 3},
    {13, 3, 22, 2, 39, 4, 122, 3, 175, 3, 238, 6, 297, 3},
    {13, 3, 22, 3, 39, 3, 121, 3, 175, 3, 238, 2, 241, 2, 297, 3},
    {12, 4, 22, 3, 39, 3, 121, 3, 175, 2, 238, 5, 297, 3},
    {12, 4, 22, 3, 38, 3, 120, 3, 175, 2, 237, 5, 298, 2},
    {12, 3, 22, 3, 38, 3, 120, 3, 174, 3, 237, 4, 298, 2},
    {12, 3, 22, 3, 37, 4, 119, 3, 174, 3, 236, 5, 298, 2},
    {11, 4, 22, 3, 37, 3, 118, 4, 174, 3, 236, 4, 298, 2},
    {11, 4, 22, 3, 37, 3, 118, 3, 174, 3, 236, 3, 298, 2},
    {11, 3, 23, 3, 36, 4, 117, 3, 173, 3, 237, 1, 298, 2},
    {11, 3, 23, 3, 36, 3, 117, 3, 173, 3, 298, 2},
    {11, 3, 23, 3, 36, 3, 116, 3, 173, 3, 198, 3, 298, 2},
    {10, 4, 23, 3, 35, 4, 115, 4, 173, 3, 197, 5, 298, 2},
    {10, 4, 24, 3, 35, 3, 115, 3, 173, 2, 196, 6, 298, 2},
    {10, 4, 24, 3, 35, 3, 114, 3, 173, 2, 195, 3, 199, 2, 298, 2},
    {10, 3, 24, 3, 35, 3, 114, 3, 173, 2, 194, 7, 298, 2},
    {10, 3, 24, 4, 35, 3, 113, 3, 172, 3, 193, 3, 198, 3, 298, 2},
    {10, 3, 25, 3, 35, 3, 113, 3, 172, 3, 192, 3, 198, 2, 298, 2},
    {9, 4, 25, 4, 34, 4, 112, 3, 172, 3, 191, 3, 197, 3, 298, 2},
    {9, 4, 25, 4, 34, 4, 112, 3, 172, 3, 190, 4, 197, 3, 298, 2},
    {9, 4, 26, 3, 34, 4, 111, 3, 172, 3, 190, 3, 197, 3, 298, 2},
    {9, 4, 26, 4, 34, 4, 110, 4, 172, 3, 189, 3, 197, 3, 298, 2},
    {9, 3, 27, 3, 34, 4, 110, 3, 172, 3, 188, 4, 197, 3, 298, 2},
    {9, 3, 27, 4, 34, 4, 109, 3, 172, 3, 188, 3, 197, 2, 298, 2},
    {9, 3, 28, 4, 34, 4, 109, 3, 172, 3, 187, 3, 196, 3, 298, 2},
    {9, 3, 28, 4, 34, 4, 109, 2, 172, 3, 187, 3, 196, 3, 298, 2},
    {9, 3, 29, 4, 34, 4, 108, 3, 172, 3, 186, 3, 196, 3, 298, 2},
    {9, 3, 29, 5, 35, 3, 107, 3, 172, 3, 186, 3, 196, 3, 298, 2},
    {9, 3, 30, 4, 35, 3, 107, 3, 172, 3, 186, 2, 196, 3, 298, 2},
    {9, 3, 31, 7, 106, 3, 172, 3, 185, 3, 196, 3, 298, 2},
    {9, 3, 32, 6, 106, 3, 173, 2, 185, 3, 196, 3, 298, 2},
    {9, 3, 32, 7, 105, 3, 173, 2, 185, 2, 196, 3, 298, 2},
    {9, 3, 33, 6, 105, 3, 173, 3, 184, 3, 197, 2, 298, 2},
    {9, 3, 34, 5, 104, 3, 173, 3, 184, 3, 197, 2, 298, 2},
    {9, 3, 35, 4, 104, 3, 173, 3, 184, 3, 197, 2, 298, 2},
    {9, 3, 36, 3, 103, 3, 174, 2, 184, 3, 197, 3, 297, 3},
    {9, 3, 103, 3, 174, 3, 184, 2, 197, 3, 297, 3},
    {9, 3, 102, 3, 174, 3, 183, 3, 197, 3, 297, 3},
    {9, 3, 102, 3, 174, 3, 183, 3, 198, 2, 297, 3},
    {9, 3, 102, 2, 175, 2, 183, 3, 198, 2, 297, 3},
    {9, 3, 101, 3, 175, 3, 183, 3, 198, 3, 297, 3},
    {9, 3, 101, 3, 175, 3, 183, 3, 198, 3, 296, 3},
    {9, 4, 100, 3, 176, 3, 183, 3, 198, 3, 296, 3},
    {9, 4, 100, 3, 176, 3, 183, 3, 199, 3, 296, 3},
    {9, 4, 99, 3, 177, 3, 183, 3, 199, 3, 296, 3},
    {10, 3, 99, 3, 177, 3, 183, 3, 199, 3, 296, 3},
    {10, 3, 99, 2, 178, 3, 183, 3, 200, 3, 295, 3},
    {1, 1, 10, 3, 98, 3, 178, 3, 183, 3, 200, 3, 295, 3},
    {1, 1, 10, 3, 98, 3, 179, 3, 183, 3, 200, 3, 295, 3},
    {1, 1, 10, 4, 97, 3, 179, 7, 201, 3, 295, 3},
    {1, 2, 10, 4, 97, 3, 180, 6, 201, 3, 294, 3},
    {1, 2, 11, 3, 96, 3, 181, 5, 202, 3, 294, 3},
    {1, 2, 11, 3, 96, 3, 182, 4, 202, 3, 294, 3},
    {1, 3, 11, 4, 96, 3, 183, 2, 202, 3, 293, 4},
    {1, 3, 11, 4, 95, 3, 203, 3, 293, 3},
    {1, 4, 12, 3, 95, 3, 203, 3, 293, 3},
    {1, 4, 12, 3, 95, 3, 204, 3, 293, 3},
    {1, 4, 12, 4, 94, 3, 204, 3, 292, 4},
    {1, 5, 12, 4, 94, 3, 205, 3, 292, 3},
    {1, 1, 3, 3, 13, 3, 94, 2, 205, 3, 291, 4},
    {1, 1, 3, 4, 13, 3, 93, 3, 206, 3, 291, 4},
    {1, 1, 4, 3, 13, 4, 93, 3, 206, 3, 291, 3},
    {1, 1, 4, 4, 14, 3, 93, 3, 207, 3, 290, 4},
    {1, 2, 4, 4, 14, 3, 92, 3, 207, 3, 290, 4},
    {1, 2, 5, 3, 14, 4, 92, 3, 208, 3, 290, 3},
    {1, 2, 5, 4, 15, 3, 92, 3, 208, 3, 289, 4},
    {1, 2, 6, 3, 15, 3, 92, 2, 209, 3, 289, 4},
    {1, 2, 6, 4, 15, 4, 91, 3, 209, 3, 288, 4},
    {1, 2, 7, 3, 16, 3, 91, 3, 210, 3, 288, 4},
    {1, 3, 7, 4, 16, 4, 91, 3, 211, 3, 287, 4},
    {1, 3, 8, 4, 17, 3, 90, 3, 211, 3, 287, 4},
    {1, 3, 8, 4, 17, 3, 90, 3, 212, 3, 287, 3},
    {1, 3, 9, 4, 17, 4, 90, 3, 212, 3, 286, 4},
    {1, 3, 9, 4, 18, 3, 90, 2, 213, 3, 286, 3},
    {2, 3, 10, 4, 18, 3, 89, 3, 214, 3, 285, 4},
    {2, 3, 11, 4, 19, 3, 89, 3, 214, 3, 285, 3},
    {2, 3, 11, 4, 19, 3, 89, 3, 215, 3, 284, 4},
    {2, 3, 12, 4, 20, 3, 89, 3, 215, 3, 284, 3},
    {2, 4, 13, 4, 20, 3, 89, 2, 216, 3, 283, 4},
    {3, 3, 13, 5, 21, 3, 88, 3, 216, 3, 283, 3},
    {3, 3, 14, 5, 21, 4, 88, 3, 217, 3, 282, 4},
    {3, 4, 15, 5, 22, 3, 88, 3, 217, 3, 282, 3},
    {4, 3, 16, 5, 22, 4, 88, 3, 218, 3, 281, 4},
    {4, 3, 17, 5, 23, 3, 88, 2, 218, 4, 281, 3},
    {4, 4, 18, 9, 88, 2, 219, 3, 280, 4},
    {5, 3, 19, 8, 87, 3, 220, 3, 280, 3},
    {5, 3, 20, 8, 87, 3, 220, 3, 279, 4},
    {5, 4, 22, 7, 87, 3, 221, 3, 278, 4, 290, 3},
    {6, 3, 23, 6, 87, 3, 221, 3, 278, 3, 290, 4},
    {6, 4, 25, 4, 87, 3, 222, 3, 277, 4, 289, 5},
    {6, 4, 87, 2, 222, 3, 277, 3, 288, 6},
    {7, 3, 87, 2, 223, 2, 276, 4, 288, 5},
    {7, 4, 87, 2, 223, 3, 275, 4, 287, 6},
    {8, 3, 87, 2, 223, 3, 275, 4, 286, 7},
    {8, 4, 87, 2, 224, 3, 274, 4, 286, 7},
    {8, 4, 87, 2, 224, 3, 273, 4, 285, 8},
    {9, 4, 87, 2, 225, 2, 273, 4, 284, 8},
    {9, 4, 87, 2, 225, 3, 272, 4, 283, 5, 289, 3},
    {10, 3, 86, 3, 225, 3, 271, 4, 283, 4, 289, 3},
    {10, 4, 86, 3, 226, 2, 271, 4, 282, 4, 288, 4},
    {11, 3, 86, 3, 226, 3, 270, 4, 281, 4, 288, 4},
    {11, 4, 86, 3, 226, 3, 269, 4, 280, 4, 288, 3},
    {12, 3, 86, 3, 227, 2, 268, 5, 279, 5, 288, 3},
    {12, 4, 86, 3, 227, 3, 268, 4, 278, 5, 287, 4},
    {12, 4, 86, 3, 227, 3, 267, 4, 277, 5, 287, 4},
    {13, 4, 86, 3, 227, 3, 266, 4, 276, 5, 287, 3},
    {14, 3, 86, 3, 228, 2, 265, 5, 275, 5, 286, 4},
    {14, 4, 86, 3, 228, 2, 264, 5, 274, 5, 286, 4},
    {14, 4, 87, 2, 228, 3, 264, 4, 273, 5, 286, 3},
    {15, 4, 87, 2, 228, 3, 263, 4, 272, 5, 285, 4},
    {16, 3, 87, 2, 228, 3, 262, 4, 270, 6, 285, 4},
    {16, 4, 87, 2, 228, 3, 261, 4, 269, 5, 285, 3},
    {17, 3, 87, 2, 229, 2, 260, 5, 268, 5, 284, 4},
    {17, 4, 87, 2, 229, 2, 259, 5, 266, 6, 284, 3},
    {18, 3, 87, 3, 229, 2, 258, 5, 265, 6, 284, 3},
    {18, 4, 87, 3, 229, 3, 257, 5, 263, 6, 283, 4},
    {19, 4, 88, 2, 229, 3, 256, 5, 262, 6, 283, 3},
    {20, 3, 88, 2, 229, 3, 255, 12, 282, 4},
    {20, 4, 88, 2, 229, 3, 254, 11, 282, 3},
    {21, 3, 88, 2, 229, 3, 254, 9, 281, 4},
    {21, 4, 88, 3, 229, 3, 254, 7, 281, 3},
    {22, 4, 88, 3, 229, 3, 254, 4, 281, 3},
    {23, 3, 88, 3, 229, 3, 280, 4},
    {23, 4, 89, 2, 229, 3, 280, 3},
    {24, 4, 89, 2, 229, 3, 279, 3},
    {24, 4, 89, 3, 229, 3, 279, 3},
    {25, 4, 89, 3, 229, 3, 278, 3},
    {26, 4, 90, 2, 229, 3, 277, 4},
    {26, 5, 90, 3, 229, 3, 277, 3},
    {27, 4, 90, 3, 229, 2, 276, 4},
    {28, 4, 90, 3, 229, 2, 276, 3},
    {28, 5, 91, 2, 229, 2, 275, 4},
    {29, 4, 91, 3, 229, 2, 274, 4},
    {30, 4, 91, 3, 228, 3, 274, 3},
    {31, 4, 91, 3, 228, 3, 273, 4},
    {31, 5, 92, 3, 228, 3, 272, 4},
    {32, 4, 92, 3, 228, 2, 272, 4},
    {33, 4, 93, 2, 228, 2, 271, 4},
    {34, 4, 93, 3, 227, 3, 270, 4},
    {34, 5, 93, 3, 227, 3, 270, 4},
    {35, 4, 94, 2, 227, 3, 269, 4},
    {36, 4, 94, 3, 227, 2, 268, 4},
    {37, 4, 95, 2, 226, 3, 268, 4},
    {38, 4, 95, 3, 226, 3, 267, 4},
    {38, 5, 95, 3, 226, 2, 266, 4},
    {39, 5, 96, 3, 225, 3, 265, 5},
    {40, 5, 96, 3, 225, 3, 264, 5},
    {41, 5, 97, 3, 225, 2, 264, 4},
    {42, 4, 97, 3, 224, 3, 263, 4},
    {43, 4, 98, 3, 224, 3, 262, 4},
    {44, 4, 98, 3, 224, 2, 261, 5},
    {45, 4, 99, 3, 223, 3, 260, 5},
    {46, 4, 99, 3, 223, 2, 259, 5},
    {46, 5, 100, 3, 222, 3, 259, 4},
    {47, 5, 100, 3, 222, 3, 258, 4},
    {48, 5, 101, 3, 221, 3, 257, 4},
    {49, 5, 101, 3, 221, 3, 256, 4},
    {50, 5, 102, 3, 220, 3, 255, 5},
    {51, 5, 103, 3, 220, 2, 254, 5},
    {52, 5, 103, 3, 219, 3, 253, 5},
    {53, 5, 104, 3, 219, 2, 252, 5},
    {54, 5, 105, 3, 218, 3, 251, 5},
    {55, 5, 105, 3, 217, 3, 250, 5},
    {56, 5, 106, 3, 217, 2, 249, 5},
    {58, 5, 107, 3, 216, 3, 248, 5},
    {59, 5, 107, 3, 215, 3, 247, 5},
    {60, 5, 108, 3, 215, 2, 246, 5},
    {61, 5, 109, 3, 214, 3, 245, 4},
    {62, 5, 110, 3, 213, 3, 243, 5},
    {64, 4, 110, 3, 213, 2, 242, 5},
    {65, 5, 111, 3, 212, 3, 241, 5},
    {66, 5, 112, 3, 211, 3, 240, 5},
    {67, 5, 113, 3, 210, 3, 239, 5},
    {68, 6, 114, 3, 209, 3, 237, 6},
    {70, 5, 115, 3, 208, 3, 236, 5},
    {71, 5, 115, 4, 207, 3, 235, 5},
    {72, 6, 116, 3, 206, 4, 233, 6},
    {73, 6, 117, 3, 205, 4, 232, 5},
    {75, 6, 118, 3, 204, 4, 231, 5},
    {76, 6, 119, 3, 203, 4, 229, 6},
    {78, 5, 120, 3, 202, 4, 228, 6},
    {79, 6, 121, 3, 201, 4, 226, 6},
    {80, 7, 122, 3, 200, 4, 225, 6},
    {82, 6, 123, 3, 199, 4, 223, 6},
    {84, 6, 124, 3, 198, 4, 221, 7},
    {85, 7, 125, 3, 197, 4, 220, 6},
    {86, 7, 126, 3, 196, 4, 218, 7},
    {88, 7, 127, 4, 195, 3, 217, 6},
    {90, 7, 128, 4, 194, 3, 215, 7},
    {91, 7, 129, 4, 193, 3, 213, 7},
    {93, 7, 131, 3, 191, 4, 211, 7},
    {95, 7, 132, 4, 190, 4, 210, 7},
    {97, 7, 133, 4, 189, 3, 207, 8},
    {98, 8, 134, 4, 187, 4, 205, 8},
    {100, 8, 136, 4, 186, 4, 203, 8},
    {102, 8, 137, 4, 184, 4, 201, 8},
    {104, 8, 139, 4, 183, 4, 199, 8},
    {106, 9, 140, 4, 182, 3, 197, 8},
    {109, 8, 141, 4, 180, 4, 194, 9},
    {111, 9, 143, 4, 178, 5, 192, 9},
    {113, 9, 144, 5, 177, 4, 189, 9},
    {116, 9, 146, 5, 175, 4, 186, 10},
    {118, 10, 148, 4, 173, 5, 183, 10},
    {121, 10, 150, 4, 171, 5, 180, 11},
    {124, 11, 151, 5, 169, 6, 176, 11},
    {127, 12, 140, 2, 153, 5, 166, 6, 173, 11},
    {131, 13, 145, 6, 154, 6, 163, 5, 169, 12},
    {135, 24, 162, 15},
    {139, 21, 162, 10}};

extern const u16 outer_fill[FIRE_LAYOUT_LEN][16] = {
    {0},
    {0},
    {0},
    {0},
    {0},
    {125, 2},
    {125, 4},
    {126, 4},
    {126, 6},
    {127, 6},
    {127, 7},
    {128, 8},
    {128, 9},
    {129, 9},
    {130, 10},
    {130, 11},
    {131, 11},
    {131, 12},
    {132, 13},
    {132, 14},
    {133, 14},
    {133, 15},
    {134, 15},
    {134, 16},
    {134, 17},
    {135, 17},
    {135, 18},
    {136, 18},
    {136, 19},
    {137, 19},
    {137, 20},
    {137, 21},
    {138, 21},
    {138, 22},
    {138, 23},
    {139, 23},
    {139, 23},
    {139, 24},
    {140, 24},
    {140, 25},
    {140, 26},
    {141, 26},
    {141, 27},
    {141, 27},
    {142, 27},
    {142, 28},
    {142, 29},
    {142, 30},
    {143, 29},
    {143, 30},
    {143, 31},
    {143, 32},
    {144, 31},
    {144, 32},
    {144, 33},
    {144, 33},
    {144, 34},
    {145, 34},
    {145, 35},
    {145, 35},
    {145, 36},
    {145, 37},
    {145, 37},
    {145, 38},
    {146, 38},
    {146, 38},
    {146, 39},
    {146, 40},
    {146, 40},
    {146, 41},
    {146, 42},
    {146, 42},
    {146, 43},
    {146, 43},
    {146, 44},
    {146, 45},
    {146, 45},
    {146, 46},
    {147, 45},
    {147, 46},
    {147, 46},
    {147, 47},
    {147, 48},
    {147, 48},
    {147, 49},
    {147, 49},
    {146, 51},
    {146, 51},
    {146, 52},
    {146, 53},
    {146, 53},
    {146, 54},
    {146, 54},
    {146, 54},
    {146, 55},
    {146, 55},
    {146, 56},
    {145, 57},
    {145, 58},
    {145, 58},
    {145, 59, 216, 1},
    {145, 59, 216, 1},
    {145, 60, 216, 2},
    {145, 60, 217, 2},
    {144, 62, 217, 2},
    {144, 62, 217, 3},
    {144, 62, 217, 4},
    {144, 63, 217, 4},
    {144, 63, 218, 4},
    {143, 65, 218, 5},
    {143, 65, 218, 5},
    {143, 66, 218, 6},
    {143, 66, 218, 6},
    {143, 66, 218, 7},
    {142, 68, 218, 8},
    {142, 68, 218, 8},
    {142, 69, 218, 9},
    {141, 70, 218, 9},
    {141, 70, 218, 10},
    {141, 71, 219, 10},
    {141, 71, 219, 10},
    {140, 72, 218, 12},
    {140, 73, 218, 12},
    {140, 73, 218, 13},
    {139, 74, 218, 13},
    {139, 74, 218, 14},
    {139, 75, 218, 14},
    {138, 76, 218, 15},
    {138, 76, 218, 15},
    {137, 77, 218, 16},
    {137, 77, 218, 16},
    {137, 78, 218, 17},
    {136, 79, 218, 17},
    {136, 100},
    {135, 101},
    {135, 101},
    {135, 102},
    {134, 103},
    {134, 104},
    {133, 105},
    {133, 105},
    {132, 107},
    {132, 107},
    {131, 109},
    {131, 109},
    {130, 110},
    {130, 111},
    {129, 112},
    {129, 112},
    {129, 113},
    {128, 114},
    {128, 114},
    {127, 116},
    {127, 116},
    {126, 117},
    {125, 119},
    {125, 119},
    {124, 120},
    {124, 37, 163, 82},
    {123, 36, 164, 81},
    {123, 37, 164, 81},
    {122, 38, 165, 81},
    {122, 39, 166, 80},
    {121, 40, 167, 79},
    {121, 41, 168, 78},
    {120, 42, 168, 79},
    {120, 43, 169, 78},
    {119, 44, 170, 77},
    {119, 44, 170, 77},
    {119, 45, 171, 77},
    {118, 46, 172, 76},
    {118, 46, 173, 75},
    {117, 47, 173, 75},
    {117, 48, 174, 75},
    {117, 48, 175, 74},
    {84, 2, 117, 48, 175, 74},
    {85, 3, 116, 49, 176, 73},
    {86, 3, 116, 50, 176, 73},
    {86, 5, 116, 50, 177, 73},
    {87, 5, 115, 51, 177, 73},
    {87, 6, 115, 51, 178, 72},
    {88, 6, 115, 51, 178, 72},
    {88, 7, 115, 51, 179, 71},
    {89, 7, 115, 51, 179, 72},
    {89, 8, 115, 51, 180, 71},
    {90, 8, 114, 52, 180, 71},
    {90, 9, 114, 52, 180, 71},
    {91, 8, 114, 52, 181, 70},
    {91, 9, 114, 52, 181, 71},
    {91, 10, 114, 52, 181, 71},
    {92, 9, 114, 52, 182, 70},
    {92, 10, 114, 52, 182, 70},
    {92, 11, 114, 52, 182, 70},
    {93, 10, 114, 52, 183, 69},
    {93, 11, 114, 52, 183, 69},
    {93, 11, 114, 52, 183, 70},
    {93, 12, 113, 53, 184, 69},
    {93, 12, 113, 53, 184, 69},
    {94, 12, 113, 53, 184, 69},
    {94, 12, 113, 53, 184, 69},
    {94, 12, 113, 53, 185, 68},
    {94, 13, 114, 52, 185, 68},
    {94, 13, 114, 52, 185, 68},
    {94, 14, 114, 51, 185, 68},
    {94, 14, 114, 51, 185, 68},
    {95, 13, 114, 51, 185, 69},
    {95, 14, 114, 51, 186, 68},
    {95, 14, 114, 51, 186, 68},
    {95, 14, 114, 51, 186, 68},
    {95, 15, 114, 50, 186, 68},
    {95, 15, 114, 50, 186, 68},
    {95, 15, 114, 50, 186, 68},
    {95, 15, 115, 49, 186, 68},
    {95, 16, 115, 49, 186, 68},
    {95, 16, 115, 48, 187, 67},
    {95, 16, 115, 48, 187, 67},
    {95, 17, 113, 1, 115, 48, 187, 67},
    {94, 18, 113, 50, 187, 67},
    {94, 68, 187, 67, 270, 1},
    {94, 68, 187, 67, 270, 1},
    {94, 68, 187, 67, 270, 2},
    {94, 67, 187, 67, 270, 2},
    {94, 67, 187, 67, 270, 3},
    {93, 68, 187, 67, 270, 3},
    {93, 67, 187, 67, 270, 4},
    {93, 67, 187, 67, 270, 4},
    {92, 68, 187, 67, 269, 6},
    {92, 67, 187, 67, 269, 6},
    {92, 67, 187, 67, 269, 7},
    {91, 68, 187, 67, 269, 7},
    {91, 67, 187, 67, 269, 8},
    {91, 67, 187, 67, 269, 9},
    {90, 67, 187, 67, 269, 9},
    {90, 67, 187, 67, 268, 11},
    {89, 67, 187, 67, 268, 11},
    {88, 68, 186, 68, 268, 11},
    {88, 67, 186, 68, 268, 12},
    {88, 67, 186, 68, 268, 12},
    {87, 67, 186, 67, 267, 14},
    {86, 68, 186, 67, 267, 14},
    {86, 67, 186, 67, 267, 15},
    {85, 68, 186, 67, 267, 15},
    {85, 67, 186, 67, 267, 16},
    {84, 68, 186, 67, 266, 17},
    {83, 68, 186, 67, 266, 17},
    {82, 69, 186, 66, 266, 18},
    {82, 68, 186, 66, 265, 19},
    {81, 69, 185, 67, 265, 20},
    {80, 69, 185, 67, 265, 20},
    {79, 69, 185, 67, 264, 21},
    {79, 69, 185, 67, 264, 22},
    {78, 69, 185, 66, 264, 22},
    {77, 70, 185, 66, 263, 23},
    {76, 70, 185, 66, 263, 24},
    {75, 70, 185, 66, 263, 24},
    {74, 71, 184, 66, 262, 26},
    {73, 71, 184, 66, 262, 26},
    {72, 72, 184, 66, 262, 26},
    {71, 72, 184, 66, 261, 28},
    {70, 72, 184, 65, 261, 28},
    {69, 73, 184, 65, 260, 29},
    {68, 73, 184, 65, 260, 30},
    {67, 73, 183, 66, 260, 30},
    {66, 74, 183, 65, 259, 31},
    {65, 74, 183, 65, 259, 32},
    {64, 74, 183, 65, 258, 33},
    {63, 75, 183, 65, 258, 33},
    {62, 75, 182, 65, 257, 35},
    {61, 76, 182, 65, 257, 35},
    {60, 76, 182, 65, 257, 35},
    {59, 76, 182, 64, 256, 36},
    {58, 77, 182, 64, 256, 37},
    {57, 77, 182, 64, 255, 38},
    {56, 78, 182, 63, 255, 38},
    {55, 78, 181, 64, 254, 40},
    {54, 78, 181, 64, 254, 40},
    {53, 79, 181, 63, 253, 41},
    {53, 78, 181, 63, 253, 41},
    {21, 1, 52, 79, 180, 63, 252, 43},
    {21, 1, 51, 79, 180, 63, 252, 43},
    {20, 2, 50, 79, 180, 63, 251, 44},
    {20, 2, 49, 80, 180, 63, 250, 45},
    {20, 2, 49, 79, 180, 62, 250, 45},
    {19, 3, 48, 79, 180, 62, 249, 47},
    {19, 3, 47, 80, 179, 62, 249, 47},
    {19, 3, 47, 79, 179, 62, 248, 48},
    {18, 4, 46, 80, 179, 62, 248, 48},
    {18, 4, 45, 80, 179, 61, 247, 49},
    {17, 5, 45, 79, 179, 61, 246, 51},
    {17, 5, 44, 80, 178, 62, 246, 51},
    {17, 5, 44, 79, 178, 61, 245, 52},
    {16, 6, 43, 79, 178, 61, 245, 52},
    {16, 6, 43, 79, 178, 60, 244, 53},
    {16, 6, 42, 79, 178, 60, 243, 54},
    {16, 6, 42, 79, 177, 61, 243, 54},
    {16, 6, 41, 79, 177, 60, 242, 56},
    {15, 7, 41, 79, 177, 60, 241, 57},
    {15, 7, 41, 78, 177, 59, 241, 57},
    {15, 7, 40, 78, 177, 59, 240, 58},
    {15, 7, 40, 78, 177, 59, 239, 59},
    {14, 9, 40, 77, 176, 61, 238, 60},
    {14, 9, 39, 78, 176, 122},
    {14, 9, 39, 77, 176, 22, 201, 97},
    {14, 9, 39, 76, 176, 21, 202, 96},
    {14, 10, 38, 77, 175, 21, 202, 96},
    {14, 10, 38, 76, 175, 20, 201, 97},
    {13, 11, 38, 76, 175, 19, 201, 97},
    {13, 11, 38, 75, 175, 18, 201, 97},
    {13, 12, 38, 75, 175, 17, 200, 98},
    {13, 12, 38, 74, 175, 16, 200, 98},
    {13, 12, 38, 74, 175, 15, 200, 98},
    {13, 13, 38, 73, 175, 15, 200, 98},
    {13, 13, 38, 72, 175, 14, 200, 98},
    {12, 15, 38, 72, 175, 13, 200, 98},
    {12, 15, 38, 71, 175, 13, 199, 99},
    {12, 16, 38, 71, 175, 12, 199, 99},
    {12, 16, 38, 71, 175, 12, 199, 99},
    {12, 17, 38, 70, 175, 11, 199, 99},
    {12, 17, 38, 69, 175, 11, 199, 99},
    {12, 18, 38, 69, 175, 11, 199, 99},
    {12, 19, 38, 68, 175, 10, 199, 99},
    {12, 20, 38, 68, 175, 10, 199, 99},
    {12, 20, 39, 66, 175, 10, 199, 99},
    {12, 21, 39, 66, 176, 8, 199, 99},
    {12, 22, 39, 65, 176, 8, 199, 99},
    {12, 23, 39, 65, 176, 8, 199, 99},
    {12, 24, 39, 64, 176, 8, 200, 97},
    {12, 91, 177, 7, 200, 97},
    {12, 90, 177, 6, 200, 97},
    {12, 90, 177, 6, 200, 97},
    {12, 90, 177, 6, 200, 97},
    {12, 89, 178, 5, 201, 96},
    {12, 89, 178, 5, 201, 95},
    {13, 87, 179, 4, 201, 95},
    {13, 87, 179, 4, 202, 94},
    {13, 86, 180, 3, 202, 94},
    {13, 86, 180, 3, 202, 94},
    {13, 86, 181, 2, 203, 92},
    {13, 85, 181, 2, 203, 92},
    {13, 85, 182, 1, 203, 92},
    {14, 83, 204, 91},
    {14, 83, 204, 90},
    {14, 82, 205, 89},
    {14, 82, 205, 89},
    {15, 81, 205, 88},
    {15, 80, 206, 87},
    {15, 80, 206, 87},
    {15, 80, 207, 86},
    {16, 78, 207, 85},
    {16, 78, 208, 84},
    {2, 1, 16, 78, 208, 83},
    {2, 1, 16, 77, 209, 82},
    {2, 2, 17, 76, 209, 82},
    {2, 2, 17, 76, 210, 80},
    {3, 1, 17, 75, 210, 80},
    {3, 2, 18, 74, 211, 79},
    {3, 2, 18, 74, 211, 78},
    {3, 3, 18, 74, 212, 77},
    {3, 3, 19, 72, 212, 76},
    {3, 4, 19, 72, 213, 75},
    {4, 3, 20, 71, 214, 73},
    {4, 4, 20, 70, 214, 73},
    {4, 4, 20, 70, 215, 72},
    {4, 5, 21, 69, 215, 71},
    {4, 5, 21, 69, 216, 70},
    {5, 5, 21, 68, 217, 68},
    {5, 6, 22, 67, 217, 68},
    {5, 6, 22, 67, 218, 66},
    {5, 7, 23, 66, 218, 66},
    {6, 7, 23, 66, 219, 64},
    {6, 7, 24, 64, 219, 64},
    {6, 8, 25, 63, 220, 62},
    {7, 8, 25, 63, 220, 62},
    {7, 9, 26, 62, 221, 60},
    {7, 10, 26, 62, 222, 59},
    {8, 10, 27, 61, 222, 58},
    {8, 11, 27, 60, 223, 57},
    {8, 12, 28, 59, 223, 56},
    {9, 13, 29, 58, 224, 54},
    {9, 14, 29, 58, 224, 54},
    {10, 15, 29, 58, 225, 52},
    {10, 77, 225, 52},
    {10, 77, 225, 51},
    {11, 76, 226, 49},
    {11, 76, 226, 49},
    {12, 75, 227, 47},
    {12, 75, 227, 46},
    {13, 74, 227, 46},
    {13, 74, 228, 44, 288, 1},
    {13, 73, 228, 43, 287, 2},
    {14, 72, 228, 43, 286, 2},
    {14, 72, 229, 41, 285, 3},
    {15, 71, 229, 40, 284, 4},
    {15, 71, 229, 39, 284, 4},
    {16, 70, 230, 38, 283, 4},
    {16, 70, 230, 37, 282, 5},
    {17, 69, 230, 36, 281, 6},
    {17, 69, 230, 35, 280, 6},
    {18, 68, 230, 34, 279, 7},
    {18, 69, 231, 33, 278, 8},
    {19, 68, 231, 32, 277, 8},
    {19, 68, 231, 31, 276, 9},
    {20, 67, 231, 30, 274, 11},
    {20, 67, 231, 29, 273, 11},
    {21, 66, 231, 28, 272, 12},
    {21, 66, 231, 27, 271, 13},
    {22, 65, 232, 25, 269, 14},
    {23, 65, 232, 24, 268, 15},
    {23, 65, 232, 23, 267, 15},
    {24, 64, 232, 22, 265, 17},
    {24, 64, 232, 22, 263, 18},
    {25, 63, 232, 22, 261, 20},
    {26, 62, 232, 22, 258, 23},
    {26, 62, 232, 48},
    {27, 62, 232, 48},
    {28, 61, 232, 47},
    {28, 61, 232, 47},
    {29, 60, 232, 46},
    {30, 60, 232, 45},
    {31, 59, 232, 45},
    {31, 59, 231, 45},
    {32, 58, 231, 45},
    {33, 58, 231, 44},
    {33, 58, 231, 43},
    {34, 57, 231, 43},
    {35, 56, 231, 42},
    {36, 56, 231, 41},
    {36, 56, 230, 42},
    {37, 56, 230, 41},
    {38, 55, 230, 40},
    {39, 54, 230, 40},
    {39, 55, 230, 39},
    {40, 54, 229, 39},
    {41, 54, 229, 39},
    {42, 53, 229, 38},
    {43, 52, 228, 38},
    {44, 52, 228, 37},
    {45, 51, 228, 36},
    {46, 51, 227, 37},
    {46, 51, 227, 36},
    {47, 51, 227, 35},
    {48, 50, 226, 35},
    {49, 50, 226, 34},
    {50, 49, 225, 34},
    {51, 49, 225, 34},
    {52, 48, 225, 33},
    {53, 48, 224, 33},
    {54, 47, 224, 32},
    {55, 47, 223, 32},
    {56, 47, 222, 32},
    {57, 46, 222, 31},
    {58, 46, 221, 31},
    {59, 46, 221, 30},
    {60, 45, 220, 30},
    {61, 45, 219, 30},
    {63, 44, 219, 29},
    {64, 43, 218, 29},
    {65, 43, 217, 29},
    {66, 43, 217, 28},
    {67, 43, 216, 27},
    {68, 42, 215, 27},
    {70, 41, 215, 26},
    {71, 41, 214, 26},
    {72, 41, 213, 26},
    {74, 40, 212, 25},
    {75, 40, 211, 25},
    {76, 39, 210, 25},
    {78, 38, 210, 23},
    {79, 38, 209, 23},
    {81, 37, 208, 23},
    {82, 37, 207, 22},
    {83, 37, 206, 22},
    {85, 36, 205, 21},
    {87, 35, 204, 21},
    {88, 35, 203, 20},
    {90, 34, 202, 19},
    {92, 33, 201, 19},
    {93, 33, 200, 18},
    {95, 32, 198, 19},
    {97, 31, 197, 18},
    {98, 31, 196, 17},
    {100, 31, 195, 16},
    {102, 30, 194, 16},
    {104, 29, 192, 15},
    {106, 28, 191, 14},
    {108, 28, 190, 13},
    {110, 27, 188, 13},
    {112, 27, 187, 12},
    {115, 25, 185, 12},
    {117, 24, 184, 10},
    {120, 23, 183, 9},
    {122, 22, 181, 8},
    {125, 21, 179, 7},
    {128, 20, 178, 5},
    {131, 19, 176, 4},
    {135, 16},
    {139, 1, 142, 11},
    {144, 1, 151, 3},
    {0},
    {0}};

extern const u16 inner_fill[FIRE_LAYOUT_LEN][16] = {
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {0},
    {167, 1},
    {167, 2},
    {167, 3},
    {167, 3},
    {167, 4},
    {168, 4},
    {168, 4},
    {168, 5},
    {168, 5},
    {168, 6},
    {168, 6},
    {169, 6},
    {169, 6},
    {169, 7},
    {169, 7},
    {169, 8},
    {169, 8},
    {169, 8},
    {169, 9},
    {169, 9},
    {169, 9},
    {169, 10},
    {169, 10},
    {169, 10},
    {169, 11},
    {169, 11},
    {169, 11},
    {169, 12},
    {169, 12},
    {169, 12},
    {169, 12},
    {168, 14},
    {168, 14},
    {168, 14},
    {168, 14},
    {168, 14},
    {168, 14},
    {168, 15},
    {168, 15},
    {167, 16},
    {167, 16},
    {167, 16},
    {167, 16},
    {167, 16},
    {166, 18},
    {166, 18},
    {166, 18},
    {166, 18},
    {165, 19},
    {165, 19},
    {165, 19},
    {165, 19},
    {164, 20},
    {164, 20},
    {164, 20},
    {163, 21},
    {163, 21},
    {163, 21},
    {162, 22},
    {162, 22},
    {162, 22},
    {161, 23},
    {161, 23},
    {160, 24},
    {160, 24},
    {160, 24},
    {159, 25},
    {159, 25},
    {158, 26},
    {158, 25},
    {157, 26},
    {157, 26},
    {156, 27},
    {155, 28},
    {155, 28},
    {154, 29},
    {154, 29},
    {153, 30},
    {153, 29},
    {152, 30},
    {151, 31},
    {151, 31},
    {150, 32},
    {150, 32},
    {149, 33},
    {148, 34},
    {148, 33},
    {147, 34},
    {147, 34},
    {146, 35},
    {146, 35},
    {145, 36},
    {144, 37},
    {144, 36},
    {143, 37},
    {142, 38},
    {142, 38},
    {141, 39},
    {140, 40},
    {140, 39},
    {139, 40},
    {139, 40},
    {138, 41},
    {138, 41},
    {137, 41},
    {136, 42},
    {136, 42},
    {135, 43},
    {134, 44},
    {134, 44},
    {133, 44},
    {133, 44},
    {132, 45},
    {131, 46},
    {131, 46},
    {130, 47},
    {129, 47},
    {129, 47},
    {128, 48},
    {128, 48},
    {127, 49},
    {126, 49},
    {126, 49},
    {125, 50},
    {124, 51},
    {124, 51},
    {123, 52},
    {123, 51},
    {122, 52},
    {122, 52},
    {121, 53},
    {120, 53},
    {120, 53},
    {119, 54},
    {119, 54},
    {118, 55},
    {117, 56},
    {117, 56},
    {116, 56, 196, 2},
    {116, 56, 195, 3},
    {115, 57, 194, 3},
    {115, 57, 194, 3},
    {114, 58, 193, 4},
    {114, 58, 192, 5},
    {113, 59, 192, 5},
    {112, 60, 191, 6},
    {112, 60, 190, 6},
    {111, 61, 190, 6},
    {111, 61, 189, 7},
    {110, 62, 189, 7},
    {110, 62, 188, 8},
    {109, 63, 188, 8},
    {109, 64, 188, 8},
    {108, 65, 187, 9},
    {108, 65, 187, 10},
    {107, 66, 187, 10},
    {107, 66, 187, 10},
    {106, 68, 187, 10},
    {106, 68, 186, 11},
    {105, 69, 186, 11},
    {105, 69, 186, 12},
    {104, 71, 186, 12},
    {104, 71, 186, 12},
    {104, 71, 186, 12},
    {103, 73, 186, 12},
    {103, 73, 186, 13},
    {102, 75, 186, 13},
    {102, 75, 186, 13},
    {101, 77, 186, 14},
    {101, 77, 186, 14},
    {101, 78, 186, 14},
    {100, 79, 186, 15},
    {100, 80, 186, 15},
    {99, 82, 186, 16},
    {99, 83, 186, 16},
    {99, 84, 185, 17},
    {98, 105},
    {98, 105},
    {98, 106},
    {97, 107},
    {97, 108},
    {96, 109},
    {96, 110},
    {96, 110},
    {96, 111},
    {95, 112},
    {95, 113},
    {95, 113},
    {94, 115},
    {94, 115},
    {94, 116},
    {94, 117},
    {93, 118},
    {93, 119},
    {93, 119},
    {92, 121},
    {92, 122},
    {92, 122},
    {92, 123},
    {92, 123},
    {91, 125},
    {91, 125},
    {91, 126},
    {91, 126},
    {91, 127},
    {90, 128},
    {90, 129},
    {90, 130},
    {90, 130},
    {90, 131},
    {90, 131},
    {90, 132},
    {89, 133},
    {89, 134},
    {89, 134},
    {89, 134},
    {89, 135},
    {89, 135},
    {89, 136},
    {89, 136},
    {89, 136},
    {89, 137},
    {89, 137},
    {89, 137},
    {89, 138},
    {89, 138},
    {89, 138},
    {89, 138},
    {89, 139},
    {89, 139},
    {89, 139},
    {89, 139},
    {89, 139},
    {89, 139},
    {89, 140},
    {89, 140},
    {90, 139},
    {90, 139},
    {90, 139},
    {90, 139},
    {90, 139},
    {90, 139},
    {91, 138},
    {91, 138},
    {91, 138},
    {91, 138},
    {91, 138},
    {92, 137},
    {92, 137},
    {92, 137},
    {93, 136},
    {93, 136},
    {93, 136},
    {93, 136},
    {94, 135},
    {94, 134},
    {94, 134},
    {95, 133},
    {95, 133},
    {95, 133},
    {96, 131},
    {96, 131},
    {96, 131},
    {97, 130},
    {97, 129},
    {98, 128},
    {98, 128},
    {99, 126},
    {99, 126},
    {100, 125},
    {100, 124},
    {101, 123},
    {101, 123},
    {102, 121},
    {102, 121},
    {103, 119},
    {103, 119},
    {104, 117},
    {104, 117},
    {105, 115},
    {106, 114},
    {106, 113},
    {107, 112},
    {108, 110},
    {108, 109},
    {109, 108},
    {110, 106},
    {110, 105},
    {111, 104},
    {112, 102},
    {113, 100},
    {113, 100},
    {114, 98},
    {115, 96},
    {116, 94},
    {117, 92},
    {118, 90},
    {119, 88},
    {119, 87},
    {120, 85},
    {121, 83},
    {122, 81},
    {123, 79},
    {124, 77},
    {125, 75},
    {126, 73},
    {127, 71},
    {128, 69},
    {129, 67},
    {131, 64},
    {132, 62},
    {133, 60},
    {134, 57},
    {136, 54},
    {137, 52},
    {138, 49},
    {140, 46},
    {141, 43},
    {143, 40},
    {144, 38},
    {145, 35},
    {147, 31},
    {149, 28},
    {151, 24},
    {152, 21},
    {154, 17},
    {156, 13},
    {158, 8},
    {160, 3},
    {159, 3},
    {160, 2},
};
